Use PackageId in the DependencyQueue
authorAlex Crichton <alex@alexcrichton.com>
Fri, 11 Jul 2014 20:32:27 +0000 (13:32 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 11 Jul 2014 21:20:24 +0000 (14:20 -0700)
commitf6d22b64b9e319c5c0caa984958e5773eaea9ef7
tree6c21850ab196cc0c607e2068a2a2d11f4c2f39f0
parent66d5ab0dd071b1d4feba822af60e0171d3ba6d0b
Use PackageId in the DependencyQueue

This allows the dependency queue to properly handle packages with the same
name but from different sources.

A test was added which exercieses this functionality by depending on two
different revs of the same git repo.
src/cargo/ops/cargo_rustc/context.rs
src/cargo/ops/cargo_rustc/fingerprint.rs
src/cargo/ops/cargo_rustc/job_queue.rs
src/cargo/ops/cargo_rustc/mod.rs
src/cargo/util/dependency_queue.rs
tests/test_cargo_compile.rs
tests/test_cargo_compile_git_deps.rs